package com.elvin.platform.beans;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

/**
 * <p>
 * 历史数据表
 * </p>
 *
 * @author zhenchl
 * @since 2022-05-12
 */
@TableName("report_data")
public class HistoryData extends Model<HistoryData> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 产品ID
     */
    private String proId;
    /**
     * 设备ID
     */
    private String devId;
    /**
     * 数据流
     */
    private String stream;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 数据来源
     */
    private String dataSources;
    /**
     * 设备表ID
     */
    private Long deviceId;
    /**
     * 设备编码
     */
    private String devCode;

    private Date reportDate;
    private String report;
    private String type;
    private String conformTime;
    private String comments;

    @ApiModelProperty(hidden=true)
    @TableField(exist = false)
    @JsonIgnore
    private String reportDateStr;
    @ApiModelProperty(hidden=true)
    @TableField(exist = false)
    @JsonIgnore
    private String reportStartDateStr;
    @ApiModelProperty(hidden=true)
    @TableField(exist = false)
    @JsonIgnore
    private String reportEndDateStr;

    @ApiModelProperty(hidden=true)
    @TableField(exist = false)
    @JsonIgnore
    private PageVo pageVo;						//分页
    public String getReportDateStr() {
        return reportDateStr;
    }

    public String getReportStartDateStr() {
        return reportStartDateStr;
    }

    public void setReportStartDateStr(String reportStartDateStr) {
        this.reportStartDateStr = reportStartDateStr;
    }

    public String getReportEndDateStr() {
        return reportEndDateStr;
    }

    public void setReportEndDateStr(String reportEndDateStr) {
        this.reportEndDateStr = reportEndDateStr;
    }

    public void setReportDateStr(String reportDateStr) {
        this.reportDateStr = reportDateStr;
    }
    public PageVo getPageVo() {
        return pageVo;
    }

    public void setPageVo(PageVo pageVo) {
        this.pageVo = pageVo;
    }

    public Date getReportDate() {
        return reportDate;
    }

    public void setReportDate(Date reportDate) {
        this.reportDate = reportDate;
    }

    public String getReport() {
        return report;
    }

    public void setReport(String report) {
        this.report = report;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getConformTime() {
        return conformTime;
    }

    public void setConformTime(String conformTime) {
        this.conformTime = conformTime;
    }

    public String getComments() {
        return comments;
    }

    public void setComments(String comments) {
        this.comments = comments;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getProId() {
        return proId;
    }

    public void setProId(String proId) {
        this.proId = proId;
    }

    public String getDevId() {
        return devId;
    }

    public void setDevId(String devId) {
        this.devId = devId;
    }

    public String getStream() {
        return stream;
    }

    public void setStream(String stream) {
        this.stream = stream;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getDataSources() {
        return dataSources;
    }

    public void setDataSources(String dataSources) {
        this.dataSources = dataSources;
    }

    public Long getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(Long deviceId) {
        this.deviceId = deviceId;
    }

    public String getDevCode() {
        return devCode;
    }

    public void setDevCode(String devCode) {
        this.devCode = devCode;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

  @Override
  public String toString() {
    return "HistoryData{" +
        "id=" + id +
        ", proId='" + proId + '\'' +
        ", devId='" + devId + '\'' +
        ", stream='" + stream + '\'' +
        ", createTime=" + createTime +
        ", dataSources='" + dataSources + '\'' +
        ", deviceId=" + deviceId +
        ", devCode='" + devCode + '\'' +
        ", reportDate=" + reportDate +
        ", report='" + report + '\'' +
        ", type='" + type + '\'' +
        ", conformTime='" + conformTime + '\'' +
        ", comments='" + comments + '\'' +
        ", reportDateStr='" + reportDateStr + '\'' +
        ", reportStartDateStr='" + reportStartDateStr + '\'' +
        ", reportEndDateStr='" + reportEndDateStr + '\'' +
        '}';
  }
}
